<%@page import="com.news.entity.User"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<%
	 
	pageContext.setAttribute("name", "page");
	request.setAttribute("name", "request");
	session.setAttribute("name", "session");
	application.setAttribute("name","app");
	 
	%>
	${name}
	<hr>
	page:${pageScope.name}<br>
	request:${requestScope.name}<br>
	session:${sessionScope.name}<br>
	application:${applicationScope.name}<br>
	param:${param.username}<br>
	path:${pageContext.request.contextPath }
	
	<a href="${pageContext.request.contextPath }/a/a.jsp">a.jsp</a>
	<hr>
	${ 5 lt 9 }
	${ 15 le 9 }<br>
	true and false: ${true and false } = ${true && false }<br>
	<%
		String s= "";
		pageContext.setAttribute("s", s);
		
	%>
	
	s is null: empty=》 ${empty s } ，eq null: ${ s eq null}  <br> 
		<%
		List list=new ArrayList();
		pageContext.setAttribute("list", list);
		
	%>
	
	list is null :${list eq null },${empty list }
	list 不为空 ${not empty list }<hr>
	
	<%
		User u=new User();
		u.setUsername("aaa");
		u.setPassword("123456");
		pageContext.setAttribute("u", u);
	%>
	
	u.username=${u.username },
	u.password=${u.password }
</body>
</html>